package com.example.easyexcel.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AssetInterfaceApiInfo {

    // ========== Excel映射字段 ==========
    @ExcelProperty(value = "接口名", index = 0)
    private String interfaceName;

    @ExcelProperty(value = "接口URL", index = 1)
    private String interfaceUrl;

    @ExcelProperty(value = "接口时效性", index = 2)
    private String interfaceTimeliness;

    @ExcelProperty(value = "历史数据范围", index = 3)
    private String historyDataRange;

    @ExcelProperty(value = "可查询跨度", index = 4)
    private String querySpan;

    @ExcelProperty(value = "最大承载TPS", index = 5)
    private String maxTps;

    // ========== 数据库专用字段 ==========
    @ExcelIgnore
    private String interfaceId;

    @ExcelIgnore
    private String assetNo;

    @ExcelIgnore
    private LocalDateTime createTime;

    @ExcelIgnore
    private LocalDateTime updateTime;

    @ExcelIgnore
    private Long delFlag;

    @ExcelIgnore
    private LocalDateTime delTime;
}

